﻿using System;
using Model.Base;
namespace Model.Config
{
    /// <summary>
    /// 模型层，网站配置，术语对象
    /// </summary>
    public class TermInfo
    {
        /// <summary>
        /// 术语编号
        /// </summary>
        public int TermID { get; set; }
        /// <summary>
        /// 术语标签
        /// </summary>
        public string TermLabel { get; set; }
        /// <summary>
        /// 术语名称
        /// </summary>
        public string TermName { get; set; }
        /// <summary>
        /// 术语描述
        /// </summary>
        public string TermDescription { get; set; }
        /// <summary>
        /// 是否包含子级
        /// </summary>
        public string HasSub { get; set; }
        /// <summary>
        /// 父级术语对象
        /// </summary>
        public TermInfo ParentTerm { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }

    /// <summary>
    /// 模型层，术语搜索条件
    /// </summary>
    public class TermCondition : BaseCondition
    {
        /// <summary>
        /// 父级术语id
        /// </summary>
        public int ParentTermID { get; set; }

        /// <summary>
        /// 父级术语标签
        /// </summary>
        public string ParentTermLabel { get; set; }
    }
}
